import { forwardRef, Module } from '@nestjs/common';
import { SysMenuService } from './sys-menu.service';
import { SysMenuController } from './sys-menu.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SysMenu } from './entities/sys-menu.entity';
import { SysRoleModule } from '../sys-role/sys-role.module';
import { SysRole } from '../sys-role/entities/sys-role.entity';

@Module({
  imports: [
    TypeOrmModule.forFeature([SysMenu, SysRole]),
    forwardRef(() => SysRoleModule),
  ],
  controllers: [SysMenuController],
  providers: [SysMenuService],
  exports: [SysMenuService],
})
export class SysMenuModule {}
